/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nutmotion.service;

import com.nutmotion.utils.StringBuilderAppendHelper;
import com.nutmotion.common.Constants;

/**
 *
 * @author Manu
 */
public class SelectClauseStringBuilder {

    private StringBuilderAppendHelper sbah;

    public SelectClauseStringBuilder() {
        this.sbah = new StringBuilderAppendHelper(Constants.JPQL_SELECT_CLAUSE_PREFIX, Constants.JPQL_WHERE_CLAUSE_APPEND);
    }
    
    public SelectClauseStringBuilder append(String stringToAppend) {
        this.sbah.append(stringToAppend);
        
        return this;
    }
    
    @Override
    public String toString() {
        return this.sbah.toString();
    }
    
}
